Refactor mem.c to use GHashTable rather than GList for memory allocation table. It's about 100x faster, and very noticable for q2wmap.
Remove unnecessary memset's in q2wmap: Z_Malloc guarantees returned memory to be initialized to 0x0.