Fix QCOM_BSP_LEGACY

Checks in the Android.mk files do not enable the cflags for .h
files, causing a build that crashes constantly.

Change-Id: I315c760488445629fda860ba70066417c7d68b8b
fix build after commit: 757a9e0
check own github for repos before searching at Cyanogenmod

Change-Id: If70b393d057b2db0c92de7e89ed730e3631759c1
Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_build into cm-12.0