qt4: apply a patch from (K)Ubuntu

Suggested by @ruediger on IRC.
mesa: fix LLVM runtime dependency (close #4853)