made small changes to compile in gcc (and updated to latest random-access-set)