Apply patches.