Implement a bunch of custom glibc wrappers & corresponding tests