Modernize WinSock code.