Do the OpenGL initialization before QApplication is created