Minor adjustments for MinGW cross compiling