libhardware: Modify ifdefs for legacy DirectTrack

Change-Id: Id3a8adc3bd3b8fe5973e359b5268671f6fd26cd4
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_hardware_libhardware into temp