Gold heads for first weekly gain in three as Fed signal hurts dollar