fix mingw build on windows
Merge pull request #7 from wagut/win-mingw-build

fix mingw build on windows