Fix bug 3081: CMake configuration auto-disables OpenGL ES support on Windows. Thanks to EntranceJew for the patch.