C++11

Reference #1401.

Change much stuff to use new library.
But macros are coloured red and very pretty, whereas plain variables are grey and not outstanding, which these constants should be.