Make necessary changes for make rpm to work