Fix warnings/errors when compiling for arm64