Fix homebrew-related problems