msm8960: Fixed compilation under GCC 4.7

Various fixes for the GCC 4.7/Linaro compiler. AOSP Master is moving
toward GCC 4.7 so it isn't a bad idea to get compatible with the
toolchain.

Change-Id: I88518ff14cd6fa6e26e2daed4a3a6414e0cd01a0
Signed-off-by: rohan <rohanmathur34@gmail.com>