Detect memory for heap sizing on OSX.
Patch by Cathy Daw, reviewed by brandonwilliams for CASSANDRA-5157