Some chatcleaner fixes for Qt5 (and other stuff).