Remove WindowsBase dependency.

Threading namespace is no longer needed. Remove WindowsBase reference
and cleanup unused using statements in several locations.