Fix for gentoo upstream media-libs/opencv ebuild. It was not able to build a package in systems with both Qt4 and Qt5 installed