Change the macros prototypes in the {de,}serialization to pass the FILE*,