Add support for Mac OS X/Darwin

Currently, this package only supports Linux.  This pull request expands its capabilities to also cover Mac OS X.