Fix building issue with `aarch64-apple-darwin` target (M1)