Give up on trying to fix kactivitiesmanager, and drop the daemon instead.
It doesn't work and does not compile with base GCC. Maybe more luck next
time.