Fix loop indices error (thx to icc warnings)
Workaround for missing C++11 features in icc