Fix compilation for qt