Added ability to override malloc etc. with define.

Added the ability to override malloc/calloc/realloc/free() with dmt
equivalents by using the define DMT_OVERRIDE