improve compilation script for fedora compilation