Fix OSX build.
Merge pull request #356 from bosschaert/osxbuild

Fix OSX build.