fixed makefile for mac