Redefined errno for use with sockets, defined EWOULDBLOCK on windows