gold changes direction, post gains as dollar eases