American Mark Wiebe has won the Senior Open after beating Bernhard Langer in the fifth hole of a sudden death play-off.