Use memcpy() instead of unaligned accesses.
Created originally on Bitbucket by vbernat (Vincent Bernat)
Was already merged in Bitbucket before import, marked as merged by the import user
This should fix #162 (closed).
When a structure is packed, some members may be unaligned. Some architectures like Sparc are unable to handle those and will be terminated with a SIGBUS.
This changeset use memcpy() to avoid any unaligned accesses.
Tests are OK on Sparc and x86_64