opencv: Fix for linuxbrew

Fixes https://github.com/Homebrew/homebrew-science/issues/930