fix build without quick

(gui && qml) is not a sufficient condition for the availability of
quick (e.g., missing opengl support can disable it).

Task-number: QTBUG-32682
Change-Id: I3b7fb005528cc99239f59d34c7f70abeebcfa75c
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>