Fixing Mac OS compilation issue

Fixes #148