[runtime] First pass of cross compilation cleanup. Allow offsets and alignment to be externally calculated.