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
Omap3 use this workaround too
temporary compatibility workaround for usage of MemoryBase
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0

Conflicts:
	libs/binder/MemoryBase.cpp
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
libgui: Add native window attributes to query usage

This is required to enable GL libraries to query usage
native window attributes to enable/disable tile rendering.

Change-Id: If752fa26ac3d8ffd7776cc5a16fe162af0742df5
Merge remote-tracking branch 'cyan/cm-11.0' into cm-11.0
Merge remote-tracking branch 'Quarx/cm-11.0'