Add thrift generated code