Patent Licensing and Capacity in a Cournot Model