updated makefiles so they work on mac