C++11

Reference #1401.

Change much stuff to use new library.
What happens when thread is not joinable? And when does that happen?