Fix YouCompleteMe crash problem on OSX.