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
merge CyanogenMod

Change-Id: I6aa8fbdac0fab2a4d4d5cccff394e8fc6ef800b2