Build compliance for Qt < 4.8