winsock2.h should be included before windows.h. (dm)