Fixed compilation for Qt5, fixed possibility to run with SW rendering on device