Refactor Windows support for SOC.
Wrap s in parentheses for SOCKET_ERROR().
Use GET_ERRNO.
Merge pull request #15 from mtheall/master

Refactor Windows support for SOC.