Fix for dialog boxes drawing emacs unusable on darwin.