Fixing compilation errors when CC_ENABLE_PROFILERS is enabled.