Fix compilation on less recent Qt 5.x.