CTO Contract Agreements Partnership Business Law
I would suggest an Employment Agreement -- they're not a founder but your first employee.
I won't suggest a particular template, as IANAL, but that's how I would approach this problem.
If the company has a low, or no market value, you will likely use a Restricted Stock Purchase Agreement. This will grant stock to the new CTO which will become unrestricted as it vests. In the US, the RSPA will allow the CTO to take advantage of an 83(b) election in which they will pay a small amount of tax on the award, based on the low FMV of the business, and pay preferential capital gains tax rates in the future when a liquidity event occurs.
http://www.docracy.com/7764/restricted-stock-purchase-agreement