Adapt to MinGW
Merge pull request #11 from katahiromz/master

Adapt to MinGW