gmp: fix build on libc++ / clang on 10.9

Fixes #21259.