glibc: Import several fixes from RHEL.

Fixes #10611, CVE-2014-5119 among other bug fixes.