Anyway, it doesn't seem to be justified to port application in C-language just to use quite simple memory pool in C++ which fits in a header file. I totally object it.