Lowe's earnings beat Wall Street forecasts with sales benefiting from an increase in new home construction.