qpdf: Fix build with Clang/libc++.

* Reference patch from my upstream PR:
  https://github.com/qpdf/qpdf/pull/21.

Closes #23412.