[OS X] Fix memory scribble.

The buffer being allocated for use with sysctl was not the right
size and so it would trash the memory after the end of the buffer.

Fixes issue #433.