Changing the calls to strerr() to check HAVE_STRERR (which is defined