Fix build with glibc 2.17