gle: fix gnu hashmap compilation errors

Closes #28293.

Patch from macports: https://trac.macports.org/ticket/41760