Revert "Use boost::thread instead of std::thread"

This reverts commit 71b5c5f2e4450eda5352eccf01a3c7c3488dd5e8.
Fix ubuntu compile errors