Allow libcrange to build on OSX

I got these changes merged into ytoolshed/range, but it looks like this is the most active libcrange repo.

Where is the most official libcrange repo? There are a bunch.