on MinGW32, use compiler provided [v]snprintf
release thread handle
Cosmetic change
If zctx_interrupted is non-zero, does not install signal handler