gh-144490: Fix mimalloc debug build for C++ (#144620)

2 files changed