gold futures close near $1,035 as dollar rises