added a self-rolled OpenGL-function loader; only take what we need.