fix rpmbuild errors