Fix Compilation errors of Linaro gcc