Fix compiler warnings /W4
Merge pull request #37 from zfields/compilerWarnings4

Fix compiler warnings /W4