Implement own normalizeConnectArgs function to remove dependency on net._normalizeConnectArgs