fixed pty.js build error on all new OSX systems