fix serialization for older boost version.