Fix gcc compile error concerning structs