fix rpm/deb build errors