Updated makefile for macos