changed default optimization flag from O3 to O2 for ARM