fixed compilation for qt 4.7