fix warnings when compiled against newer versions of glibc.