fix up sysctl calls for modern OS X
Merge branch 'master' into gemtalk