Fix warnings. Use sysctlbyname.