alloc: consolidate compile-time macros
audit: add a simple runtime statistics framework