Minimize glibc calls and move to /proc and /sys for network stats.