Don't check for leaks on classes that prevent heap allocation
Fix build