Various fixes for fedora on debian