Fix warnings / Linaro errors