Add option to link to OpenGL ES, fixes #1051

An option is needed as apprently just linking to libGLES breaks things.