Support fedora

These should be added to the arch support patches to support Fedora as well. Both should probably be pushed upstream.