Compact for {...} iterator to allow it to run on Mac OSX, fixes #1