Fix project failing to compile due to bad support of clang < 16 of c++20 ranges
Only with clang16 it works fine, but that is not in KDE Neons official repos and clazy is not build with it
Since we do not rely on too many features, it is reasonable to just add ifdefs
If it were much more (like in KWin), it might be reasonable to add a cmake check to avoid weird compilation errors during compilation