fix build after name change to ChainModel inference (also fix some warnings)