More than 1,000 migrants stranded for days at Budapest's main train station left the building on Friday to start walking towards the Austrian border.