Fix ios crosscompile build more generically.