fix Makefile for osx