adds malloc and dealloc for windows