Merge pull request #32 from mattn/mingw

Fix build for MinGW compiler