Fixes rpm build problems