ui_qt: fix compilation on g++