Disable use of gui on osx