Fix more compile warnings for Windows in socket.c.