configure: Add handling code for AArch64 targets