Enabled memory statistics if compiled with -DDEBUG

jemalloc initialized with malloc_conf
GLib memory profiler with glib_mem_profiler_table
Glib dumps memory stats with g_mem_profile()x during clean shutdown
jemalloc dumps memory stats with malloc_stats_print() during clean shutdown