Fedora 18 support

No real changes needed other than updating if statements-- what worked
with F17 works with F18.