Fixes windows threads