verrious fixes for linaro and build in genoral