fixed mono builds and made sure the HttpConnection changes do not affect Mono