port fix in serialize.h in order to have miner working with OSX devices

I ported a previous published patch for bit coin in order to allow osx devices to be able to compile it, in order to have it working I had to remove the first declaration of insert function in serializer.h.