Remove `__has_extension` macros for features that emit warnings.

Variable templates can be used in C++03/11 and initialized lambda captures can be used in C++11 as language extensions, but they trigger "extension" warnings. Disallow these extensions to prevent the warning.
Merge branch 'bugfix/clang_extension_warning' into develop