Revert the use of QGLWidget since it does not works well on OS X