Work around changes in newer versions of glibc