Added thread-base class for windows.