Optimal Contracting, Accounting Standards, and Market Structures*