add Makefile for Arduino and fix compile