Fix type warnings on arm64