Fixing crashing issue with QGLFunctions (the program asserts if
initialiGLFunctions() isn't called).