Misc fixes and added more OpenGL extensions.