make makefile work on OSX