updated makefile to work on OSX