added darwin support
Merge pull request #2 from typester/darwin

added darwin support