for MinGW and Windows
Merge pull request #20 from devbug/master

for MinGW and Windows