Use offsetof() to compute the memory block header size.

On compilers that don’t pad structs to alignment, this is equivalent to
using the sizeof() method. On compilers that do pad structs to
alignment, the sizeof() method will yield the wrong size, whereas this
method will work.