remove redundant parens in generated code
mark extern declarations as local