fix errors found in 'brew doctor'