qt5base: CMake should not depend on OpenGL with -no-opengl

define an OpenGL scope by testing Qt's configuration
apitrace : enable GUI build for Qt5

qapitrace builds with more recent versions of Qt