Make it compile on MacOSX

It only worked once I applied this patch ...
Merge pull request #1 from benallard/patch-1

Make it compile on MacOSX