xpdf: add link flags and fix include flag

Closes #21572.

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