Set the user agent string correctly on Windows

We use the main executable's ProductName and FileVersion resources to build the
user agent string.