OSX build changes

WITHOUT removing redundant insert method in serialize.h
typo