add compiler flag -ftemplate-depth=256 for Mac since Xcode 5 limits to 128