Use _WIN32 instead of WIN32 preprocessor directive and fix warnings
Merge pull request #340 from dschmidt/master

Use _WIN32 instead of WIN32 preprocessor directive