Added guard for Apple
Merge pull request #20 from jrahm/master

Added guard for Apple