fix qi_add_optional_package() when using qt with qmake

Change-Id: Icb5a72a43e38403649a5c87a7c5840cad254d68a