use select for timeout in cygwin - SO_RCVTIMEO is not supported