cleanup compat.h Windows stuff

- remove an unneded include for mswsock.h as we use winsock2.h anyway
- move typedef u_int SOCKET; into #ifdef WIN32 and add a comment to it
- remove typedef int socklen_t;  as this is defined in ws2tcpip.h