C++11

Reference #1401.

Change much stuff to use new library.
I don't like those literals, they are too easy to miss.