Fix compilation on CentOS with old glibc 2