graphics: Add directives for compatibility with older EGL blobs (2/2)

Port from CM9.
Original author Ricardo Cerqueira (commit
fc496c0607d0d2863ff9587019e890ab806ea49d)

Change-Id: If30f10f1d4b26547d1219e2ba05f6a831b8fbff8

Conflicts:

	libs/ui/GraphicBufferAllocator.cpp
	services/surfaceflinger/DisplayHardware/DisplayHardware.cpp
libui

Change-Id: I1f449b21aaa6384580ded2560d804087610f3a19
Always return true for eglSwapBuffers

Change-Id: I1940f0b9062856a69958372635dee207288cbf99
EGL_ALWAYS_ASYNC

Change-Id: I539ae83385a572c4599f482ff9dca3d39128e76e
MemoryHeapBase: ifdef for gingerbread/froyo compatibility

Allow to "revert" by a board config flag the offset member addon
see commit f24c4cd0f20 (aosp change id Ie618fb5c0718e)

This change is required to use overlay based proprietary camera libs
coming from gingerbread and froyo builds.

This change also requires a global cflag named BINDER_COMPAT
because a lot of modules use the MemoryHeap includes

Add this in your BoardConfig.mk :
COMMON_GLOBAL_CFLAGS += -DBINDER_COMPAT

Backported from /#/c/13317/

Change-Id: I2e5c10d3cd9584803dd282aa17650661d6499e5b

Conflicts:
	include/binder/MemoryHeapBase.h