aarch64: Add support for the dotprod and i8mm extensions
This uses the same configure logic as in ffmpeg and dav1d for these features. (The tools had bugs relating to the asm directives for enabling these extensions until not long ago, so the right procedure for enabling them isn’t entirely straightforward.) Also use the same kinds of macros for enabling/disabling the extensions within asm sources as ffmpeg/dav1d.