Include auto-detection of RAM size on OS X.

Call `sysctl hw.memsize` and parse the result, which seems
to be the simplest way to find this information on OS X.
Merge pull request #3 from schmiddy/osx_get_memory

Include auto-detection of RAM size on OS X.