fix compile errors for linaro 4.7.3