cmake: bump minimum version
Using ECM requires a more recent CMake version, let's update the root CMakeList.txt to reflect this. This silences a CMake warning.
But in recent CMake versions, the default OpenGL library has changed to GLVND. We need to revert back to "LEGACY" to avoid linking errors due to missing GL symbols.