Fix build on Non-QCOM

Credits: cyanogen

Change-Id: I1cab23964ece1ad967a3f0491a43e23102d28c1d