build both C++11 future and thread