fix Makefile for mac