Autodetect CPU count and network interfaces.