Fix build system for Apple Clang 17
Fix compilation errors for Apple Arm
The flag -msse is only a valid one for the x86 platform. Up to now only
a warning was shown if the flag was used on the arm platform. With
Apple Clang 17 using the flag is now an error.
Remove the flag when building for arm.
Fix compilation error due to a missing template argument in external
package.
Allow compilation with specific SDK an macosx
With the latest version of macosx and/or Clang it is not possible to
compile older ROOT versiond (v6.30.08) with the default Software
Development Kit (SDK). To compile with a non default one it is needed
to pass the extra paramter -DCMAKE_OSX_SYSROOT when running CMake.
The flag needs to be added when compiling FairSoft, FairRoot and
CbmRoot.
This commit properly pass this flag also to all our external packages
such that they are also properly build.
Also some cleanup of the build system files for the external packages
is done. Some default CMake parameters are defined only once and then
used in any of the recipes which are used to build the external
packages.