Oil prices extend gains, climb further from 5-month lows