Patch adapted from upstream:
f540945940
At the same time, linking against opencv 4 fails when compiling shotwell
with gcc. As a stopgap measure, disable option OPENMP (which currently
forces use of gcc, but work is underway to switch that to llvm (see
PR 252379). I'll revisit OPENMP once 252379 has landed).