Add thrift to dependency