Fixes a Mac build caused by 99fd6ce5. Enables Mac builds on pull requests.
Issue: #1132 (closed), #2764 (closed)