More native mingw32 fixes