[kcalcore] Fix Qt 5 build.