Added WinSock version definitions and checking

Checking has been put in place to ensure that the received WinSock
library is the version as requested. Definitions have been made to allow
the requested version of the WinSock library to be changed (default is
1.1)