Use strerror_r()/strerror_s() instead of strerror() where possible