replace libc memory allocation routines with glibs