Fix building debug versions of ghostscript.