Fix builds under gentoo glibc-2.19