fix compilation failures when not building with patched QT/WebKit

Apparently, no one uses the plain vanilla build as no one reported
any issue for a long time. This will get it to compile and work at
least for a sample page.