Adding some CMake modules from KDE, since the original versions are buggy