Make it build both with pre and post 19.08.0 KCalCore
Summary:
Obviously this assumes a compiler supporting __has_include in C++14
mode, but that should be the case in most target platforms nowadays.
Beside this is hopefully temporary measure.
Reviewers: dfaure
Differential Revision: https://phabricator.kde.org/D23443