Eliminate dependency on strerror_r()