fixed OS X support
Merge pull request #1 from JanSimek/master

fixed OS X support