Added OpenGL ES 2 context support, set SDL_GL_CONTEXT_MAJOR_VERSION to 2.

The additional attributes are pulled from SDL 1.3/2.0, similar to webOS
Match the SDL_GLattr enum order from webOS, so conditional code will work properly
Minor EGL fix
Merge pull request #44 from jgranick/emulate

Added OpenGL ES 2 context support