Add missing includes and link libraries with KCalCore master
Doesn't build, but gives a better impression of the damage to decide how to proceed.