adapt Makefile for MacOS