made changes that let it compile in gcc (and updated to latest random-access-set)