Removing boost export macros in favour of virtual serialization functions