Fix various framework checks for KF6
Certain conditional code was only compiled for KF5. This allows compiling all parts of the codebase with KF6 (docs & code depending on KFActivities)
Certain conditional code was only compiled for KF5. This allows compiling all parts of the codebase with KF6 (docs & code depending on KFActivities)