improved configuration for std::unique_ptr and std::thread
improved configuration for WITH_BOOST_THREAD
cmake: added missing variable