Gold prices give up earlier gains to settle modestly lower