Depends on ghostscript installed using '--with-x11'.

Following #16924 and merging of #14456.