Fix compatibility with linaro toolchain, credits to CastagnaIT