Fixes #12098 Only dynamically load the libGLESv2 library if OpenGL ES is enabled.

The nvidia driver version 334.21 has included the libGLESv2 library.
Users upgrading to the newer drivers were seeing mythfrontend segfault
because it was dynamically loading this library and then using it
incorrectly (because mythtv had been build with opengles disabled)