added modified makefile for mac