Make compile: kcontacts doesn't include widgets, so use Qt5Gui_VERSION
(cherry picked from commit aa01d917ebb0cc77d015ba7c95d6a423b2942a06)