More mingw porting