Fix passing in the function name to external function declarations