Gold dips; set for first weekly gain in five as dollar falls