Fix --with-* dependencies

Fixes https://github.com/Homebrew/homebrew-php/issues/1143