lib/write: Add some debugging messages.
ppc: iconv: Source is UTF-16LE not just UTF-16.

On big endian architectures like PowerPC, "UTF-16" means "UTF-16BE"!
lib: Add attribute((packed)) on inner struct.

Apparently this attribute is not "inherited" from the outer struct to
the inner struct.
ppc: handle: Display block id in debug output portably.

On PowerPC, 'char' is 'unsigned char', whereas on everything else it
is 'signed char'.  Therefore the block id fields got printed
differently (unsigned integers on ppc, signed numbers everywhere
else).

Change this debug message to be more informative and portable.
lib: Add debugging of return values from _hivex_get_children.

The debugging is commented out as it's huge and wasn't especially
useful.
ppc: Fix endianness bug which caused node_add_child to fail.

Code used:

  le32toh (reg_field + 0x1000)

instead of the correct version:

  le32toh (reg_field) + 0x1000

The first incorrect form adds 0x1000 to the possibly byte-swapped
registry field, corrupting it.

I used the following command to look for problems in the remaining
code but did not find any:

  git grep -P 'le\d+toh\s*\([^)]*\+'

NOTE that 'htole32 (reg_field - 0x1000)' is correct.