doxygen: fix compile for Xcode-only systems

Closes #19545.