Not a complete fix by any stretch of the imagination, but this is what I had to do in order to use the parts of c_aggregate.pl
and c_lists.pl
that I needed. This is a quick fix, not a real solution (which would seem to require extensions to XSB's module system), but maybe other people will find it useful for now.