Linaro build fixes