build: Fix cflags for QC targets

Change-Id: I2281bec3afb4d80e80845718d880dc24ef7baf32
Merge "build: Fix cflags for QC targets" into illusion-4.4