Fixed OSX makefile, removed duplicate insert definition from serialize.h

Fixed the OSX makefile, similar to changes make the the .pro file. Also removed the duplicative insert function causing compilation errors from serialize.h.