enable to use of trmem.h for C++ source code