Fixed failing Travis build

Fix for the failing travis build.

I got the fix from here: http://docs.travis-ci.com/user/osx-ci-environment/