Gold steadies on safe-haven buying, weaker dollar