crtdbg.h is part of Visual Studio tools, and I suspect you can actually live well without that, if you just remove the functions that uses it, which is particular "_CrtDumpMemoryLeaks();".

--
Mats