Don't use macro names from the implementation namespace.
When checking for C++ features, use valid C++. Expect libc++ to provide
the wchar traits.
The implicit conversion from QString to ofstream file name argument is
ambigious, so explicitly use the ascii() version.
Don't define a macro called test. Expect GCC4-like compilers to provide
__func__.
nullptr is a reserved name in C++11, so use a different identifier.
Be explicit that the local version of bitset is wanted, not the STL
version in std for C++11 libraries.
Don't depend on namespace pollution to find resetiosflags. Add missing
<functional> include.
Avoid hash function name since C++11 already provides such functions.
Add missing includes from libstdc++'s namespace pollution. Let the
compiler figure out which types std::advance is used with.
Be explicit about using the local copy_if, it is part of C++11 and now
the look up is ambigious.
Add a number of includes hidden by libstdc++'s name space pollution.
Do not define putc/getc macros on NetBSD, it can wreak havoc with
cstdio.
Deal with the 16bit ctype table move in NetBSD/current. Fix some cases
of ctype.h argument range errors.