added mem.h include to all data structure headers so that users have access to mem_release and mem_retain