gl_common: add OpenGL 3.x context creation