fix build on PyQt <4.9.5