fix build errors for linaro toolchain (gcc-4.7)

Fix build errors for linaro toolchain ( http://releases.linaro.org/13.06/components/android/toolchain/4.7 )