Fixing function declarations such that QtCreator understands them