Check for ppc64 macros before plain ppc. Consider both upper and lower case variants because some compilers have only one of them. Fixes: #20368