Stocks gain ground on Wall Street ahead of U.S. holiday