Oil climbs as U.S. stock market strengthens, but heads for weekly loss