Ply Gem, a Cary company that manufactures windows, doors and other home building products, has agreed to be bought by a New York private equity firm. Staff Charlotte Observer file photo