Minor changes for QT5 support

It compiles with QT4 and QT5 and plot(1:10) + zoom is working as well. I made no further tests yet.