add support for MinGW.
Merge pull request #71 from starwing/master

add support for MinGW.