Oil holds gains on shrinking U.S. stockpiles