Asian shares gain, gold rises on weaker dollar