Two Stefan Maierhofer goals gave Millwall a huge boost in their bid to stay in the Sky Bet Championship as they won 2-1 at Middlesbrough.