restore lost constructor
fix case of #include in test
give thread tasks names and use them to create log contexts
add extra braces as come compilers get confused
fix case for #include
suppress warnings