merge xstrdup.c to xmalloc.c