Add thrift as a dependency