added more print statements to makefile
added TEMPLATE_DEPTH parameter to makefile under mac only.
Merge pull request #279 from stan-dev/feature/issue-278-Xcode5

feature/issue-278: XCode 5

Verified to work on both clang++ and g++ on new Xcode 5.