Build onnxruntime with training, training_apis, tests and gcc-15 (#27191)
### Description
This change is needed to build onnxruntime with gcc-15 when training,
training_apis and tests are enabled.
### Motivation and Context
When building onnxruntime on fedora 43, both s390x and x86, with
following command line, build fails:
`./build.sh --config Debug --parallel 0 --enable_pybind --build_wheel
--enable_training --enable_training_apis --enable_training_ops
--allow_running_as_root --compile_no_warning_as_error`.
This change fixes build failure caused by cxxopts missing correct
includes.