Forget strerror_r, it causes problems. Fix later when threading matters