made packed structs OS-independent