Add support for MS-specific _isatty()
Fix static build with MSVC
Fix MSVC 10 build

std::bitset constructor was ambiguous because in C++11 the parameter
changed from unsigned long to unsigned long while MSVC violates the
standard by also having a constructor taking an int parameter.
Fix Doxygen warnings due to missing lzma defs