gold prices post modest gains as traders eye dollar, oil