fixed makefile to run on OSX