RFC: Remove generic heap debugging using DEBUG_MEM
This also gives us the option of turning the
gmem module into a header only
wrapper for the standard library allocation functions to reduce function call
overhead. We also make use of compiler intrinsics for overflow checking if
available to further reduce their performance impact.