Patch for Yosemite support

From https://codereview.qt-project.org/#/c/87515/

I removed the patch against the tests/ file, since that directory is
excluded from release tarballs.
Only patch on yosemite for now
Merge pull request #12 from boxen/yosemite

Patch for Yosemite support