Linaro compiler fixes