Fix gcc flags typos
Update cross-compile script for mingw