Some backport of vzalloc