dcmtk: fix compilation issue with newer clang++

Closes #23700.

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