Adjusting to compile in OS X.
Merge pull request #2 from enderson/darwin

Adjusting to compile in OS X.