Make sure we use the correct strerror() in case someone is using threads.