tuxeip: fixes for winsock2

MSVC needs io.h for close() in Ethernet_IP.c
Add WSACleanup() calls after close()'s for win32
Must call WSAStartup() before using a socket under winsock
Version 2.2 was released in 1997, safe to assume we can use it instead.