fix VarIterator for cmake build
Merge pull request #206 from mkrivos/small_fixes

fix VarIterator for cmake build