UNC pulls away from NC State late in 76-65 win