remove threads for windows