Include <winsock2.h> before <windows.h>, to avoid <winsock.h> inclusion.