Fix for compiling Windows version with mingw
Merge pull request #1533 from EionRobb/patch-2

Fix for compiling Windows version with mingw