Detect Darwin for beginning to support OS X.

Add detection for Darwin to support running on OS X.
I have tested with OS X Mountain Lion v10.8.3.