Qt5 fix in debug build