Replaced Qt5::Gui dependency with Qt5::Widgets.
Merge pull request #511 from kislinsk/command-line-modules-require-qt5-widgets

Replaced Qt5::Gui dependency of CommandLineModules/Core with Qt5::Widgets.