gold futures close up on weaker dollar