Fix mac

Fixes #151