* refactored write_nonblocking_socket to use SO_SNDTIMEO only when it's available
* added SO_SNDTIMEO check for configure