Linaro -O3 fixes
One commit for Linaro toolchain compatibility from thicklizard