Fix build on ancient Qt versions