Configure win32 openssl build
Theres not localtime_r on Windows
Fix windows build, mostly openssl issues