Use winsock2.h instead of winsock.h
Fix TCP client connection closing (call shutdown)
Workaround for x64 support, force (int) comparison on socket FD.
VS project: fix static compilation targets.