various qt5 fixes