cocoa: move the gl function loader to gl_cocoa.c