scantailor: upstream patch to build with clang

Fixes #11817.
Closes #27919.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>