media: add a flag for ion compatibility

 Google kernel source for hammerhead call for heap_mask instead of
  heap_id_mask, maybe other devices as well.
  This brings compatibility back without the kernel header hacks.

 To enable, set TARGET_USE_ION_COMPAT := true in the BoardConfig.mk

Change-Id: Icd0e1ceacd58f24ae2f8a0e07547044c1ee0c6b1