Fix qmlchat compilation