Marcus Thuram's brace kept Borussia Monchengladbach's European hopes alive as they beat Freiburg 2-1.