opencv: Add --with-cuda, require -stdlib=libstdc++ when enabled

Closes #305.
picard-tools 1.112

Closes #840.