improve Makefile to compile in mac
delete useless files