compile target arm and thumb with O3 flag, cpp files are compiled with O2

Change-Id: Ie5cf996e28f24698302ebfccc436b8f7227bb1b2