Use older flag to enable C++11.
Use the range-based for loop of C++11 (not finished yet).