makefile chaged for both mac and linux