d2-common: fix ev build

Change-Id: I2578e45de65418e305b5aecfc870388acd539d05
Make 4.3 work

Squashed set of commits kanged from jf

Change-Id: I2d7488e7ff060f8929f3a5ec8031472a43bafd91
Samsung Krait: move defines for camera around

Change-Id: Iafc47d3b92795de8af3762a3e54cffdff7090638
Use the MM heap for the camera

Change-Id: I03340697e048cd2870016923004cd7b96c64f8d4
d2: support for hardware geofencing

Change-Id: Id44e1854be77c7dcb42b73e4fcde8d956075c9a3
add semcosh nvram

Change-Id: I8b80d3ed68970a366ac36ee91a85980661b6a6f8