Incorrect checksum computation on 64-bit systems #539