Make sure /usr/local has the right permissions on OS X