modify for fedora compile