Fix for native simulation in CEntryStub.
Fix 64-bit kStateOffset endianness issues.