Fix rpm build

fixes #791