(WIN) use HeapAlloc/Free instead malloc/free