gringo: fix build on pre-10.9 clang

Closes #27893.
gringo: upstream patch to build on FSF GCCs