Fix building on mingw32
Merge pull request #33 from ryanatball/master

Fix building on mingw32