Make use of offsetof to compute header size
Make use of offsetof to compute header size

The old code was based on how libxml itself does similar things in its
memory debugging code.  The new code should be easier to understand.

gagern/libxmljs,gagern/libxmljs,gagern/libxmljs