(term-mouse-paste): Make work for xemacs. Minor GNU emacs fixes.