Add option to link to OpenGL ES

An option is needed as just linking to libGLES breaks things. (see #1051)