pdf2image: Add deps on ghostscript and freetype

Closes #24891.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>