Allow building qt module without OpenGL.