[sensorfw] fix for qt4 build and qt5 package build