Fix build for GCC 4.7

Change-Id: I4e9265369174d82b55fd435bc47887972f99c9d4
fix build with Linaro GCC 4.8
fix build with Linaro GCC 4.9.1

from: https://github.com/rmbq/android_kernel_htc_msm8960/commit/369eccd439fe312ed6c6e1ba1c5024bbe976dabf