Applied Linaro optimizations

Mostly about changing to 4.8 toolchain/O3/strict-aliasing/performance tweaks