Removed the mem_dbg functions.
Style.
calloc instead of malloc/memset. from Benjamin Baier