Fix aligned alloc feature condition on C++14 compiler
Hi @haozha111 Can you please review this PR ? Thank you!
The updated condition will only compile if both C++17 and C11 compliance are met, guaranteeing that the aligned_alloc feature is available. 

Relevant closed PR #57707 

Fixes #57706