Fix build on Mac.
Merge pull request #40 from fragglet/master

Fix build on Mac.