Unused externs and typedef generating code