some fixes for zsh issues on mavericks