Revert r195381, "Implement a bunch of custom glibc wrappers & corresponding tests."

It broke a buildbot.