fixing makefile up for osx apps
update makefile, and updated main to chdir for osx