Fix building error under mingw
Merge pull request #83 from rogerz/mingw-build-error

Fix building error under mingw