gold futures close higher as dollar slips, oil gains