Fix build with >=enchant-2
Summary: Forwarding a user-contributed patch.
Reviewers: aacid
Reviewed By: aacid
Differential Revision: https://phabricator.kde.org/D7748