Changes for mingw cross build