Name threads for debug purpose

Change-Id: Id99ba394b898b7da0057d4a145ce8dce46122782
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Blind MSVC fix

Change-Id: I22c316cc82c40481fa1bf93412d97d67e1f95b41