Fix build with mingw-w64
Merge pull request #88 from slimsag/master

Fix build with mingw-w64