Minor modifications for cross compilation

Only problem now is mxe's qt cmake scripts don't seem to be pulling its dependencies..