Fix build errors with Linaro