Fix qt tests compilation