Well, since you didn't provide the actual error that I presume you received from make, it's difficult to help. You could try executing this
Code:
sed -i "s/GtkType/GType/g" src/fe-gtk/xtext.h
before trying to configure and build XChat. If that doesn't work, you could try fixing your D-Bus service. You could also fix the XChat code and send them a patch if you think they have poor coding practices.