Add -ftemplate-depth-256 flag as possible fix for OS X compile problems