Fix missing curl initialization
Fix jthread warnings
Add win32 jthread stop