updated makefile for mac