update makefile for mac os