added a few backports to eliminate test failures and compile time warnings
added patches to fix problems with Process.damon
Merge pull request #2565 from skaes/more-backports-for-2-1-0

added a few backports to eliminate test failures and compile time warnings