Oil prices gain 1% with Libya shutdown