Implement ARB builtins and add extra glext constants.

  Also accept BGR for textures, to make it easier to use sdl surfaces
that are in that format.