Fix compiler warnings when building for arm64