Remove debug hooks from CMakeList