WinTLS: fix library detection in configure
WinTLS: Fix various fmt warnings