Added Windows thread id comparisons

Fixes #95