Use more features from C++11.

This will drop support for GCC 4.6 and Visual Studio 2012.