Fix compilation with old versions of rpm