configure plugin fixes for Akonadi instances
Differential Revision: https://phabricator.kde.org/D6507