only use MINGW workarounds when building with MINGW