add workaround code for cocoa emacs