Use universal build code for arch detection on x86-64, RISC-V and aarch64
Adds a `DUMP_SELECTED_BUILD` to the universal entry point that is used by `scripts/get_native_properties.sh` to get the optimal build for the host machine.
This solves incorrect feature flags on AMD under MSYS2/Cygwin (https://github.com/official-stockfish/Stockfish/pull/7321) and simplifies things a lot, at the cost of requiring GCC or clang for `scripts/get_native_properties.sh`. None of this work affects explicit arch selections.
closes https://github.com/official-stockfish/Stockfish/pull/7327
No functional change