small fixes for building the rpm