Better crosscompilation handling