fix build and add linaro patches