fixed build errors for linaro gcc 4.7.3