more proper like mingw fixes