ghostscript: depend on freetype on 10.6

Closes #24076.