fixed warnings when compiling for arm64 architecture