Fix index scan in _PG_init by using GetTransactionSnapshot().
Add an endianness check that hopefully won't be optimized away by the compiler.