Make glibc compilation more pure.

This fixes some impurities in glibc, but not all.