make makefile work on os x