Fix building with --disable-sockets on Windows