Fixes so that QupZilla can run on Haiku

Compiles and runs, but crashes a lot due to a buggy QtWebKit port.
See commit messages for expanded summary.