Fixed issue with SIGWINCH on OSX. Fixed flickering window problem in OSX terminal.