replace system calls with Minitar