Make path tools working with CompoundPath