update vout.hpp to work with old and scary versions of C++ (replace "auto" by actual type), add small C++11 thread test