Fix rpm errors