Don't use imported targets with Qt 4.
Merge topic 'fix-Qt5-windows-build' into next

aeaef5e7 Don't use imported targets with Qt 4.