core: fix portability for g++ ; ui_qt: refresh and keep module path