CFNetwork on Windows based on work by David M. Cotter