fix zpuinoprogrammer Makefile and cast issue (make compiler happy)