Several bugs - changes for RHEL7

> > +ifdef(`distro_rhel7', `
> 
> ifndef?

Right it's the other way around, fixed.

-- 
Later,
 Lukas #lzap Zapletal