Portability tweak

http://emacsformacosx.com/ has gui functions that don't exist in
standard emacs. There are other issues as well (sqlplus), but this issue
is easy to resolve with a simple check.