Gold futures gain, turn higher for the week