gold futures gain, turn higher for the week