Fix bug.

This makes it build on OS X again...
Merge pull request #603 from stal888/patch-4

Fix bug.