From Jan Ciger, compilation fix for Qt 5.0.2