changes to try and get curl_plugin to build on windows.  not yet working.
this commit also adds support for writing to stdout and -diagnostic option.
===VersionHistory:None===