libhardware: Add QCOM_HARDWARE ifdefs

Change-Id: I8a903caad9716d5c9571fe4735567ae33a48aefd