Remove dependencies of System.Net