fix up sysctl calls for modern OS X