Apply some PM patches.