Changes to the makefile to compile on Mavericks; changed the setup so on Mac the pwd is correct