Fixing windows build warnings
Resolved various warnings in the windows socket code