Apply patches by tberger.