Update the iiglue driver with API changes

This adds a flag to control the behavior of the branch hack
introduced in travitch/foreign-inference@1280682002f7214c70ef6065fcc641e69ae647f1.

The hack behavior defaults to off; supplying the flag turns it on.