feature/issue-278: XCode 5

Fixes the build problem introduced by XCode 5's g++ and clang++. Fixed by setting template-depth.