fix OS X build failure

Fixes #111