surfaceflinger: Work around aliasing violations

Change-Id: I22e758390c1312e60bb4adac2365be201ba6f161
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>

Conflicts:
	services/surfaceflinger/Android.mk
Squash GCC 4.8 fixes

gldual: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

gl2_jni: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

gl_perfapp: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8

gl_jni: Fix build with gcc 4.8+
Use -Wno-error=unused-parameter with gcc >= 4.8