update makefile for latest theos and to support 5.x/arm64