Fix build on mingw
Merge pull request #33 from mattn/fix_build_mingw

Fix build on mingw