fix compilation with Boost 1.56.0

Boost's »indexed« range adaptor has changed in an incompatible way in
1.56.0. The underlying iterator can now be used with range-based for
loops, but that means that there's no way safe for #ifdefs for catering
to both 1.56.0 and older versions.

Fixes #1051.
ChangeLog udpate