Gold scores first back-to-back gains in nearly 2 weeks as dollar steadies