gold gains as weak dollar weighs vs. lower oil