Fixed Linaro errors and other errors