Add cmake option to switch between GLES1 or GLES2 support.