Allow windows compilation to work with Mingw

Compilation should now work with MSVC and mingw (32-bit)