removes calls to libc