Adding mingw32 support as a compilation platform

This has been tested to build and run on windows/linux/mingw