Add Xterm titles patch

Add an ancient patch to show e.g. number of new mails etc in Xterm titles. This also works in tmux and screen.