Gold futures give up earlier gains to finish lower