even more small mingw/win fixes