libhardware: Modify ifdefs for legacy DirectTrack

Change-Id: Id3a8adc3bd3b8fe5973e359b5268671f6fd26cd4
Merge remote-tracking branch 'upstream/android-4.4' into android-4.4

Keep in sync with omni. This round: more qualcomm stuff -_-