Gold gains as dollar falls and oil drops