AMENDED AND RESTATED STOCK PURCHASE AGREEMENT by and among JELD-WEN HOLDING, INC., and ONEX PARTNERS III LP and THE OTHER INVESTORS NAMED HEREIN Dated as of July 29, 2011