World stocks rally after tech sell-off, dollar gains