Conditional compilation for 'root_only_memory_allocation' flag.