c++11 std::thread wrapper