fix for mac
Merge pull request #1 from shwanton/master

fix for mac