American J.J. Spaun birdied four of his last five holes to secure a two-shot victory at the BMW PGA Championship, the European tour's flagship event.