bug fixing during portage to Qt5