Update serialize.h

Fixed OSX issue