Made changes so that it compiles on windows. With MinGW
Merge pull request #35 from Smilex/windows_fix

Made changes so that it compiles on windows. With MinGW