modify Makefile to match the fixes of arm-cortex port