fix emacsnw for OS X