arm64 patches and fixes