properly initialize heap memory in win32 support