Fix compilation issues

I really hate the way irc module was designed!