Compatibility with fedora and qt5