OSX support.

Simply put, detects OSX and loads the libraries accordingly. Some usage instructions included in code comments/commit message.