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.

Fixes #11