Use 'packed' attribute on structs used to represent individual peaks and peak headers. This is a quick, if not ideal, solution. Broken peakfiles generated on 64-bit platforms must be deleted!