replace stgMallocBytesRWX() with our own allocator