vo_gl: move window creation functions from vo_gl.c into gl_common.c