fix for mavericks
work with more than one version of osx
Merge pull request #21 from dragonfax/master

Support for Mavericks OSX 10.9