apply post-1.12.1 patches, bump version to 1.12.2

13 files changed