PRSDK-7323: utils/profiling: Fixing errors with CPLUSPLUS build