Fix compilation on CentOS with old glibc