Oil extends gain after stockpiles fall with focus on Middle East