Updated CMake script to detect arm64