Global stocks advance as dollar weakness lifts oil