THRIFT-2893 CMake build fails with boost thread or std thread