The virtuous cycle of patents and licensing