Add option to link to OpenGL ES, fixes #1051