fix runtest.sh, differentiate build for qt4 and qt5