Fix forward compatibility with glibc > 2