Include Winsock2.h before Windows.h

unistd.h on mingw-w64 includes winsock2.h.