use xalloc

This commit replaces all malloc/calloc to xmalloc/xcalloc like mentionned in #108