Improve freeze support on Mac OSX
Fix code completion trigger shortcut on Mac OSX

close #127