Fix Makefile for compatibility with Darwin