Modify Makefile for MacOS compile