Some fixes for Mac OS + homebrew.