fix win32 http download code
error reporting API