Some minor updates for mac systems.

Fixes some tex9 issues and some iTerm2 issues with mac systems.