Fix qt 5.0 build