squash mingw printf format warning
squash mingw variable set but not used warning
portable socket type should be SOCKET
Merge pull request #104 from pijyoi/warning-fix

minor fixes to reduce warnings in mingw