code replace a library to override libc functions