Fixes for libqt4

* Fix policy violations introduced by my previous change (sorry)
* Change library versions where needed