Ply Gem's Q2 results show sales gain with net loss