Added Linaro optimizations with @fusionjack fixes