Add x11 check for osx.