Backport small patch from upstream master to fix build with eglibc-2.17