compilation refinement for Qt5