Revert "Enable C++11 and use it to simplify loops."
This reverts commit 4c8b9cf0ada9f93299e898e325b2069304089ac8.