gl: check QT_OPENGL_DYNAMIC instead of qt version

some portable functions are defined since qt 5.3