Fix missing dealloc for ControlRecorder
Move constant definitions to source file, more tamper-proof