Fix OSX build error described in #116
Merge pull request #123 from Peerunity/i116-osx

Fix OSX build error described in #116