fix Makefile for building on Mac