vm:: global replacement

I guess we can change the the argv copying to not use this function but something that uses memcpy instead