Handle different strerror_r definitions