merged mingw build fixes from RC_0_16
fix mingw build of tests
support proxy authentication in http.py and tests