Fix curl plugin on Windows. Ticket #3979