Added memory debugging facilities for those that need such things.

Left them all turned off to place bmalloc in "release" mode.