Don't build qt3d without opengl module

This is required to fix CI build of qt3d and subsequently qtlocation.

Change-Id: Iec836a88941329f773e785502a1fa528cc358415
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>