properly wrap XMPP stuff with "#ifdef HAVE_XMPP"

Some XMPP dependent code was not properly contained.