fix code that creates C++ function definition stub