aamath: fix build with clang

Closes #23872.