Gold extends rally as dollar steadies