Linaro 4.8 fixes

Change-Id: Ic25ad1d4e722370911af87abaea774cd6efc86bc
linaro 4.8 fixes

Change-Id: I0d4f043b8114075d30ecc928962a7c157b321883
Fix for GCC 4.8

Change-Id: I3cd9a67706187b401a2e57b23734e9b8f6d5f183
GCC 4.7 fixes

Change-Id: If0c16b6a494c7300d5890658d10d4f8e8f717a39
Fix Flags to compile with gcc 4.9 and graphite

Change-Id: Iccd92cadbb642dbb212e515238059a9642572944
Signed-off-by: RobbieL811 <RobbieLancaster811@gmail.com>