Compilation fixes in the Xmpp module