fix Makefile for Mac

Ready to be merged.