gold futures end higher, shares climb