Added: support for windows threading.