update makefile for mac