add loadfunctions to xlib opengl