added method for generating linkdef for struct