add an option to build against GLES2 instead of OpenGL
Create OpenGL ES2 context when compiled with USE_GLES=1