run on OSX 10.9
Merge pull request #68 from Smosia/master

run on OSX 10.9