[PATCH] Support building on macOS/arm64