We shouldn't need to set flags for C++11 manually any more.

Relates #747.