Looking at my config quickly, I think you probably need this:

(xterm-mouse-mode 1)

Or simply upgrade to the top of tree version of Emacs that now has native mouse support in the terminal.