make use of qtHaveModule()

there is an upstream function for that now.

Change-Id: I3af000cf3b727d367439fee5a7fbd87064f70d4d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>