Fix endianness issue with POSIX dyld plugin

To support cross-endian and big-endian debugging avoid copying target
memory directly into host variables.