remove calls to libc