Added automatic recompilation of affected files after GUI option changes. Removed unnecessary conditional define for Qt 5 - it compiles fine with #include <QWidget>.

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>