Fixes sockets2 on Windows.