fix some warnings on mingw
Merge pull request #72 from TheOneRing/warnings

fix some warnings on mingw