Switch to Qt5 and fixup the error messages