add an option to build against GLES2 instead of OpenGL