Add a compdebug bitmask setting which can be used to turn off code

for profiling purposes