Fix compilation errors with debug enabled