Fix compilation with qt <= 5.2