Add the macosx support.
Merge pull request #2 from monadbobo/macosx

Add the macosx support.