made it compilable under Qt 5