Now hexchat doesn't abnormally terminate when started as root.

Now hexchat doesn't abnormally terminate when started as root.

This fixes #589/#504.