adds osx fix

I know this isn't a POC, however I feel it is relevant to readers coming here as it is not a part of repositories or other discussion yet