Check that we are using Qt5 when building IFW

Change-Id: Ieadcbaf0e26adf8f593ab1f98c4bb220db685bc8
Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>