Make code compile on Mac OS X
Implement interleaved iterators