include relevant parts of license from backports
Fixes #1418
[skip ci]