fix build against the latest gcc/glibc