target arm/thumb:compile both with O3 flag, fall back to O2 for cpp files

Change-Id: I21c290df651b2fa5b52fb757e424697ce7f54b12