Making modifications so it will compile in linux