Fix C++ compat for utils.c