This version fixes an incorrect strerror_r() usage
causing logging garbage in verbose mode, and fixes a
bug that caused HTTP_PROXY_EXTERN and
HTTP_PROXY_LOCAL to swap. It adds code for
autodetecting an external host in case the extern and
local net lists are empty and the socket is nonblocking.