[Qt] Fix build of modules depending on QtWebKit when using prefix