Fixing compilation errors when enable CC_ENABLE_PROFILERS.