Automatic loading of the libraries with ROOT6 on Apple search for libraries with extension dylib. Older versions of ROOT expect the extension so. Depending on the ROOT version the correct extension is choosen.