set nonblocking mode for socket on Windows