Replace some calls to xcalloc with XCALLOC