[Qt] Make it possible to build WebKit without QtWidgets