Middlesbrough came from behind to earn a vital 4-1 victory over relegation candidates Yeovil in the Sky Bet Championship at the Riverside.