Add support for arm64

With this patch sope builds on arm64.