C++/MemAlloc: Make it compitable with Windows