update Makefile for both linux and mac