Fix compilation with GLIBC versions < 2.17.