Add library for Mac OS X.

Closes #1