Add externs to generated code.