multi-thread enable for windows