fix Makefile bug on OSX