modifiactions to be able to compile in qt5 version smaller than 5.2