Replace old concurrency lib with C++11 threading