opencv: optional dep on ffmpeg, fix linking if not

If ffmpeg is installed, opencv tries to depend on it, but can't quite manage it without homebrew's help. This patch adds a `--with-ffmpeg` option to the formula.