ARM64 compilation

Changes I made to get the ARM64 target to compile.