Fix MinGW build regarding winsock2.h

MinGW's windows.h reads winsock.h unless winsock2.h has been
already included before it.  We need the latter since ws2tcpip.h
requires it.