gold futures turn higher after earlier weakness