Detect and work with iTerm2's built-in tmux support.

iTerm2 has built-in tmux support; it does nice things like opening each tmux window in a new iterm window.

this simple modification looks at $TERM_PROGRAM to see if we're running in iTerm; and if so, it adds the "-CC" flag in a couple of places to work with iTerm.