Update to makefile for aarch64. Correctly detect it's running on a 64bit system and remove the -m64 flag in build steps if on aarch64.