Windows mingw workarounds