Some more qt5 only fixes.

Change-Id: I7c190667f7ae243289b3e08ff76f9f398178bc24
Reviewed-by: Niels Weber <niels.weber@digia.com>