Fixed all compiler warnings on win32
Merge pull request #884 from lodle/compilewarnings

Fixed all compiler warnings on win32