update Makefile for Mac support