BLD: add pathib dependency
COMPAT: fix itertools imports