fix up makefile for mac builds