OS X 10.10 update
Merge pull request #30 from posva/master

Update cmake scripts to support OS X 10.10