Added some OpenGL business

Added some OpenGL functions and other goodies. I also got the window to
work, since I had altered the code a bit stupidly.