fix up VM arch flags
remove superfluous Structure.ByReference usage