Setup basic OpenGL functions.