Fixes startup process.
Load chat.el when necessary, set chat variable when loaded.