use xalloc
Merge pull request #146 from ronnychevalier/rc/xalloc

Use xalloc everywhere