fix rpm/deb build error