libva and some other fixes