support linaro, and minor fixes