[build] allow custom CMAKE_C_STANDARD and CMAKE_CXX_STANDARD (#25782)
### Description
allow custom CMAKE_C_STANDARD and CMAKE_CXX_STANDARD
Fixes #25756
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->