This is a very ugly patch, but it makes Webcamoid run for the users.
Unfortunately, Webcamoid crashes when it is built with clang.
The upstream is investigating. It runs fine when gcc builds it.
USE_GCC in combination with qmake5 hits another bug: Bug#224137: qmake runs g++ command instead of ${CXX}.
This isn't yet fixed by the Qt team, hence another workaround.
I would like to commit this patch for the benefit of users who will be able to run Webcamoid this way, instead of seeing it crashing.