fixing compiler warning for glibc 2.11