Compute and return the header checksum.

Unit test now passes again.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>