make makefile work for darwin(mac)