Fix build error in ql