Fix sync_socket_extension.cc for Windows compilation

An update to compile this extension on Windows.
I tested on Windows 7 (32 bits).