Fix win32 msys build
Merge pull request #25 from Lord-Nightmare/master

Fix for building on win32 mingw-msys