libhardware: ifdef QCOM stuff

Change-Id: I250a9d10edbe337ecb930dbe1f1988c13eb7969a