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