do not optimize for size

except for prima

Change-Id: I06e7ae6ffbac161f12904450ffa473ff1f89fd52
compile using -O2 and other optimizations

Change-Id: Iddcd8d7803e3c0c7bf0508cb8e1a1dcaf3b712f6