Copy from pZip's Linux source code fixed to compile in OSX