Fixed OS X compilation (works at least on 10.9 now).
Merge pull request #8 from fingon/osx-compilation

Fixed OS X compilation (works at least on 10.9 now).