better error checking on sysctlbyname