Fix x64 build
 - warning C4244: 'return' : conversion from 'sock_t' to 'int', possible loss of data
 - warning C4244: 'function' : conversion from 'sock_t' to 'int', possible loss of data