Replaced boost with c++11 threads